package net.pimpas.validation.result;

import java.util.List;

import net.pimpas.validation.message.ValidationMessage;

public interface ValidationResult {
	List<ValidationMessage> getMessages( );
	
	boolean hasErrors( );
	boolean hasWarns( );
	boolean hasInfos( );
	
	List<ValidationMessage> getErrors( );
	List<ValidationMessage> getWarns( );
	List<ValidationMessage> getInfos( );
	
	void addMessage(ValidationMessage message);
}